import { fetchGet, fetchPost, fetchDel, fetchGetDown, fetchPut, fetchPostUp } from "@/axios";
const employeeDismission = {
  //   查询所有考勤人员
  getEmployeeConfirmList() {
    return fetchGet(`/api/LZempEntFormInfo/selectAll`);
  },
  // 分页查询表格数据请求
  getEmployeeConfirm(page, pageSize, params) {
    // return fetchGet(`/api/LZempEntFormInfo/page?page=${page}&pageSize=${pageSize}&empName=${params.empName}`);
    return fetchPost(`/api/LZempEntFormInfo/page?page=${page}&pageSize=${pageSize}`, params);

  },
  // 离职员工文件上传
  upFileEmployee(params) {
    return fetchPostUp(`/api/LZempEntFormInfo/upload`, params)
  },
  // 上传后下载
  // upFileEmployeeDown() {
  //   return fetchPost(`/api/LZempEntFormInfo/upload`)
  // },
  // 离职员工分页文件下载
  downloadEmployee(page, pageSize) {
    return fetchGetDown(
      `/api/LZempEntFormInfo/download?page=${page}&pageSize=${pageSize}`
    );
  },
  // 离职员工全部信息下载
  downloadEmployeeConfirmList() {
    return fetchGetDown(`/api/LZempEntFormInfo/downloads`);
  },
  // 离职员工删除
  delEmployee(params) {
    return fetchDel(`/api/LZempEntFormInfo/delete?empStaNum=${params}`)
  },
  // 离职员工编辑 
  changeInfo(params) {
    // return fetchPut(`/api/LZempEntFormInfo/update?empStaNum=${data}`,params)
    return fetchPut(`/api/LZempEntFormInfo/update`, params)
  }
};
export default employeeDismission;
